import { createApp } from 'vue'
import App from './App.vue'
import route from './router'
import store from './store';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.use(route)
app.use(store); // 使用挂载用户信息
app.use(ElementPlus)
app.mount('#app')

const _ResizeObserver = window.ResizeObserver;
window.ResizeObserver = class ResizeObserver extends _ResizeObserver {
    constructor(callback) {
        super(entries => {
            requestAnimationFrame(() => callback(entries));
        });
    }
};